package com.why;

import com.wechat.pojo.WechatTextMessage;
import com.wechat.utils.XmlUtils;

/**
 * Created by Administrator on 2017/12/29 0029.
 */
public class Test {
    public static void main(String []args){
     /*   List<WechatImageTextMessage.Article> article = new ArrayList<WechatImageTextMessage.Article>();
        List<WechatImageTextMessage.Article.Item> items = new ArrayList<WechatImageTextMessage.Article.Item>();
        WechatImageTextMessage.Article.Item item = new WechatImageTextMessage.Article.Item("","","","");
        items.add(item);
        article.add(new WechatImageTextMessage.Article(items));
        String str = XmlUtils.objectConvertToXml(new WechatImageTextMessage("","","","","",article));
        // List<WechatImageMessage.Image> imageList = new ArrayList<WechatImageMessage.Image>();
       // String str = XmlUtils.objectConvertToXml(new WechatImageMessage("ss","ss","ss","ss","dd",article));

        System.out.println(str);*/

        WechatTextMessage wechatTextMessage = new WechatTextMessage("","","","","");
        String str = XmlUtils.objectConvertToXml(wechatTextMessage);
        System.out.println(str);
    }
}
